package cn.comon.app.scan.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.comon.app.scan.dao.AsReportinfoDao;
import cn.comon.app.scan.entity.AsReportinfo;
import cn.comon.app.scan.service.AsReportinfoService;

/**
 * 第三方软件检测发送信息源
 * @author xujf
 *
 */
@Service
@Transactional
public class AsReportinfoServiceImpl extends BaseServiceImpl<AsReportinfo> implements AsReportinfoService
{
    
    private AsReportinfoDao asReportinfoDao;
    
    @Autowired
    public AsReportinfoServiceImpl(AsReportinfoDao asReportinfoDao)
    {
        this.asReportinfoDao = asReportinfoDao;
        setBaseDao(asReportinfoDao);
    }
    
    public List<AsReportinfo> getReportinfoMaxSize(int selectMaxSize) {
        return asReportinfoDao.getReportinfoMaxSize(selectMaxSize);
    }
    
    public void updateReportinfo(AsReportinfo asReportinfo) {
        asReportinfoDao.updateReportinfo(asReportinfo);
    }
    
    public void updateDownloadState2Undownload() {
        asReportinfoDao.updateDownloadState2Undownload();
    }
    
    public List<AsReportinfo> getDownloadApp(int size) {
        return asReportinfoDao.getDownloadApp(size);
    }
    public void updateDownloadState2ing(int size) {
        asReportinfoDao.updateDownloadState2ing(size);
    }
    
    public void updateDownloadAppinfo(AsReportinfo asReportinfo) {
        asReportinfoDao.updateDownloadAppinfo(asReportinfo);
    }
}